/* css书写顺序(重点) */
/* 1.布局定位属性 *display/position/float/clear/visibility/overflow */
/* 2.自身属性 width/height/margin/padding/border/background */
/* 3.文本属性 color/font/text-decoration/... */
/* 4.其他属性 content/cursor/border-radius/box-shadow/text-shadow/... */

/* 清除元素默认内外边距 */
* {
    margin: 0;
    padding: 0;
}
body {
    background-color: #f3f5f7;
}
li {
    list-style: none;
}
/* 去掉按钮自带的边框 */
button {
    border: none;
}
a {
    text-decoration: none;
}
/* 清除浮动 */
.clearfix:before,
.clearfix:after {
    content: "";
    display: table;
}
.clearfix:after {
    clear: both;
}
.clearfix {
    *zoom: 1;
}
/* 版心部分 */
.w {
    width: 1200px;
    margin: auto;
}

/* fixedbar左侧导航栏 */
.fixedbar {
    position: fixed;
    left: 50%;
    margin-left: -800px;
    z-index: 666;
    width: 180px;
    height: 420px;
    background-color: #fff;
}
/* fixedbar左侧导航栏 */

/* header 头部区域 */
.header {
    height: 42px;
    margin: 20px auto;
}

.logo {
    float: left;
    margin-right: 80px;
}
.nav {
    float: left;
}
/* 导航里li */
.nav ul li {
    float: left;
}
.nav ul li a {
    display: block;
    height: 40px;
    line-height: 40px;
    padding: 0 10px;
    margin-right: 20px;
    color: #050505;
    text-decoration: none;
}
.nav ul li a:hover {
    border-bottom: 2px solid #00a4ff;
}
.search {
    float: left;
    margin-left: 70px;
}
.search input {
    float: left;
    width: 360px;
    height: 38px;
    border: 2px solid #00a4ff;
}
.search button {
    float: left;
    width: 48px;
    height: 42px;
    background-color: #00a4ff;
}
.user {
    float: left;
    height: 42px;
    margin-left: 30px;
    font-size: 14px;
    line-height: 42px;
    color: #666;
}

/* banner */
.banner {
    height: 420px;
    background-color: #1c046c;
}
.subnav{
    float: left;
    width: 150px;
    height: 420px;
    padding: 0 20px;
    background: rgba( 0, 0, 0, .3 );
}
.subnav li {
    height: 45px;
    line-height: 45px;
}
.subnav li a{
    color: #fff;
    font-size: 14px;
    text-decoration: none;
}
.subnav li a:hover {
    color: #00b4ff;
}
.subnav a span {
    float: right;
}
.course {
    float: right;
    width: 228px;
    height: 300px;
    background-color: #fff;
    margin-top: 50px;
}
.course-hd {
    height: 48px;
    background-color: aqua;
    font-size: 18px;
    text-align: center;
    line-height: 48px;
    color: #fff;
    /* 文字加粗 */
    font-weight: bold;
}
.course-bd {
    padding: 0 15px;
}
.course-bd li {
    height: 50px;
    border-bottom: 1px solid #ccc;
    margin-top: 10px;
}
.course-bd li h4 {
    font-size: 14px;
    color: #4e4e4e;
}
.course-bd li p {
    font-size: 12px;
    color: #a5a5a5;
}
.all {
    display: block;
    height: 38px;
    border: 1px solid #00a4ff;
    margin-top: 10px;
    font-size: 16px;
    text-align: center;
    line-height: 38px;
    color: #00a4ff;
}
.all:hover {
    background-color: #00a4ff;
    color: #fff;
}
/* banner */

/* goods */
.goods {
    height: 60px;
    margin-top: 10px;
    box-shadow: 2px 2px 2px rgba( 0, 0, 0, .2 );
    line-height: 60px;
}
.goods h3 {
    float: left;
    font-size: 16px;
    color: #00a4ff;
    margin: 0 30px;
}
.goods-item {
    float: left;
    color: #ccc;
}
.goods-item a {
    font-size: 16px;
    color: #050505;
    margin: 0 30px;
}
.mod {
    float: right;
    color: #00a4ff;
    margin-right: 30px;
    font-size: 14px;
}
/* goods */

/* box */
.box {
    margin-top: 15px;
}
.box-hd {
    height: 60px;
    line-height: 60px;
}
.box-hd h3 {
    float: left;
    font-size: 20px;
    /* 让粗体不加粗 400=normal */
    font-weight: 400;
}
.box-hd a {
    float: right;
    margin-right: 30px;
    font-size: 12px;
    color: #a5a5a5;
}
.box-bd {
    width: 1215px;
}
.box-bd li {
    position: relative;
    float: left;
    width: 228px;
    height: 270px;
    margin-right: 15px;
    margin-bottom: 15px;
    box-shadow: 2px 2px 2px rgba( 0, 0, 0, .3 );
}
.box-bd .hot,
.box-bd .new {
    position: absolute;
    top: 0;
    right: 0;
    background-color: #fff;
    border: 2px solid orangered;
    padding: 1px 5px 1px 5px;
    font-size: 12px;
    font-weight: 600;
    color: orangered;
    
}
.box-bd li img {
    width: 100%;
    height: 170px;
}
.box-bd li h4 {
    margin: 20px 20px;
    font-size: 14px;
    font-weight: 400;
    color: #050505;
}
.box-bd li p {
    margin: 0 20px;
    font-size: 12px;
    color: rgb(187, 182, 182);
}
.box-bd li span {
    color: orange;
}
/* box */

/* footer */
.footer {
    height: 385px;
    padding-top: 30px;
    background-color: #fff;
}
.copyright {
    float: left;
}
.copyright p {
    font-size: 12px;
    color: #666;
    margin: 20px 0 15px 0;
}
.app {
    display: block;
    width: 118px;
    height: 34px;
    border: 1px solid #00a4ff;
    text-align: center;
    line-height: 34px;
    font-size: 16px;
    color: #00a4ff;
}
.links {
    float: right;
}
.links dl {
    float: left;
    margin-left: 100px;
}
.links dt {
    height: 35px;
    font-size: 16px;
    color: #333333;
}
.links dd a {
    height: 35px;
    font-size: 12px;
    color: #333;
}
.links dd a:hover {
    color: #00a4ff;
}
/* footer */